#!/bin/env ruby
# encoding: utf-8
module User
  class BaseUser
    @firstNameLen = 50
    @lastNameLen = 50
    @emailLen = 255
    @regCodeMinLen = 6
    @regCodeMaxLen = 20

    def initialize(firstName, lastName, email, registerCode)
	  @firstName = firstName
	  @lastName = lastName
	  @email = email
	  @registerCode = registerCode
    end
  end

  class Mentee < BaseUser
  	@role = 'Mentee'
  	def initialize(firstName, lastName, email, registerCode)
	  @firstName = firstName
	  @lastName = lastName
	  @email = email
	  @registerCode = registerCode
	  super
    end
  end

  class Mentor < BaseUser
  	@role = 'Mentor'
  	def initialize(firstName, lastName, email, registerCode)
	  @firstName = firstName
	  @lastName = lastName
	  @email = email
	  @registerCode = registerCode
	  super
    end
  end

  class Employer < BaseUser
  	@role = 'Employer'
  	@faxMaxLen = 20
  	@organizationNameLen = 50
  	def initialize(firstName, lastName, email, organizationName, fax, registerCode)  	
	  @firstName = firstName
	  @lastName = lastName
	  @email = email
	  @registerCode = registerCode
	  super(firstName, lastName, email, registerCode)
	  @fax = fax
  	  @organizationName = organizationName  	  
    end
end